# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit eselect-base

DESCRIPTION="Manages the ROOT symlink"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="$MY_SRC_PATH/eselect-root-${PVR}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
IUSE=""

RDEPEND="sci-physics/eselect-alice"

src_install() {
	insinto /usr/share/eselect/modules
	newins "${WORKDIR}/${P}/root.eselect" root.eselect || die
	insinto /etc/profile.d
	newins "${WORKDIR}/${P}/profile.d/02root.sh" 02root.sh || die
	dodir /etc/alice-config/
}
